package com.example.springboothomework.entity.query;

import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author chenjianhao
 * @date 2025/6/7
 *
 * 公司查询参数
 */
@Getter
@Setter
public class CompanyQuery {
    /**
     * 页码
     */
    @NotNull(message = "页码不能为空")
    @Min(value = 1, message = "页码最小为1")
    private Integer pageNum;

    /**
     * 每页数量
     */
    @NotNull(message = "每页数量不能为空")
    @Min(value = 1, message = "每页至少显示1条")
    @Max(value = 100, message = "每页最多显示100条")
    private Integer pageSize;

    /**
     * 搜索关键字
     */
    String searchKeyword;
}